use crate::src::test::alloc_testing::{alloc_test_set_limit, alloc_test_get_allocated};
use crate::src::struct_and_type::{size_t, UnitTestFunction};
use ::libc;
extern "C" {
    
    
}
unsafe extern "C" fn run_test(mut test: UnitTestFunction) {
    alloc_test_set_limit(-(1 as i32));
    test.expect("non-null function pointer")();
    assert!(alloc_test_get_allocated() == 0 as i32 as u64);
}
#[no_mangle]
pub unsafe extern "C" fn run_tests(mut tests: *mut UnitTestFunction) {
    let mut i: i32 = 0;
    i = 0 as i32;
    while (*tests.offset(i as isize)).is_some() {
        run_test(*tests.offset(i as isize));
        i += 1;
        i;
    }
}
